/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alexpaz.clasesbase;

import java.util.ArrayList;
import javax.swing.table.AbstractTableModel;

/**
 *
 * @author Alex
 */
public abstract class AbstractDTOTableAdapter extends AbstractTableModel{

    protected ArrayList<DTO> dtos = null;

    public AbstractDTOTableAdapter(ArrayList<DTO> dtos) {
        this.dtos = dtos;
    }

    public DTO getDTO(int selectedRow) {
        return dtos.get(selectedRow);
    }
       
}
